package com.atguigu.yygh.user.mapper;

import com.atguigu.yygh.model.user.Patient;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface PatientMapper extends BaseMapper<Patient> {
    //select count(1) From Patient where year(create_Time)='2023' and user_id=?
    public Integer getCountByYearAndUserId(@Param("year") String year,@Param("userId") Long userId);
}
